package com.dz.userService.impl;

import com.dz.Mapper.empDao;
import com.dz.domain.emp;
import com.dz.userService.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    empDao empServiceDao;

    @Override
    public emp findEmp(String empName) {
        return empServiceDao.findEmp(empName);
    }

    @Override
    public int removeUser(int empId) {
        int rows = empServiceDao.removeUser(empId);
        return rows;
    }

    @Override
    public int updateEmp(emp e) {
        return empServiceDao.updateEmp(e);
    }

}
